package junit.client;

import static org.junit.Assert.assertEquals;

import java.sql.ClientInfoStatus;

import moodish.client.GUI;
import moodish.client.MessageReader;
import moodish.comm.ClientSideMessage;
import moodish.comm.MessageFromServer;
import moodish.dummy.ClientCommDummy;

import org.junit.Test;

public class MessageReaderTest {

	@Test
	public void test() {
		ClientCommDummy clientComm = new ClientCommDummy();
		MessageReader m = new MessageReader(new GUI(), clientComm);
		assertEquals(MessageReader.class, m.getClass());
		
		MessageFromServer msg = new MessageFromServer(ClientSideMessage.Type.CONNECTED, "david");
		clientComm.receiveMessage(msg);
	}

}
